
#import <UIKit/UIKit.h>

@interface UIView (Extension)
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGPoint origin;

/*
 *  遍历输出所有子控件
 */
- (void)logSubviews;

// 清空一个控件及其内部所有子控件上的约束
- (void)clearAllConstraints;
- (void)clearAllConstraintsInSubviews;

/**
 *  获取键盘对象
 */
+ (__kindof UIView *)getKeyboard;

/**
 *  获取类名为classString的子控件
 *
 *  @param classString 类名的字符串
 *
 *  @return 属于该类的view的数组
 */
- (NSArray<__kindof UIView *> *)findSubviewWithClass:(NSString *)classString;


/**
 *  返回所有子控件(装在数组中)
 */
- (NSArray <__kindof UIView *>*)getSubviews;


@end
